import Vue from 'vue'
import VueRouter from 'vue-router'
import layoutIndex from '@/views/layout/layoutIndex.vue'
import loginIndex from '@/views/login/loginIndex.vue'
import homeIndex from '@/views/home/homeIndex.vue'
Vue.use(VueRouter)

const routes = [
{
  path:'/',
  name:'layoutIndex',
  component:layoutIndex,
  children:[
    {
      path:'/',
      name:'homeIndex',
      component:homeIndex
    }
  ]
},
{
  path:'/login',
  name:'loginIndex',
  component:loginIndex
}
]

const router = new VueRouter({
  routes
})

export default router
